class KeyValueModel {
  String? key;

  String? value;

  int? id;

  bool? select;

  bool get isSelect => select ?? false;

  dynamic extra;

  KeyValueModel({
    this.key,
    this.value,
    this.id,
    this.select,
    this.extra,
  });

  KeyValueModel.fromJson(dynamic json) {
    key = json['key'];
    value = json['value'];
    id = json['id'];
    select = json['select'];
    extra = json['extra'];
  }

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['key'] = key;
    map['value'] = value;
    map['id'] = id;
    map['select'] = select;
    map['extra'] = extra;
    return map;
  }
}
